<%@page import="java.net.*" %>
<%@page import="java.io.*,java.util.*" %>

<%
String sdkId = request.getParameter("sdkId");
String startDate = request.getParameter("startDate");
String endDate = request.getParameter("endDate");
String sdkKey = "d5c496634eafa4651276c8a75a8bb1c6";

String requestUrl = "http://report.gc-game.com:8888/payment/dataServlet?startDate="+startDate+"&endDate="+endDate+"&sdk="+sdkId+"&sign=c7ed9d20ab4905caa48864dd044df7c9";
   URL dest = new URL("http://report.gc-game.com:8888/payment/dataServlet?startDate=2016-12-01&endDate=2016-12-01&sdk=1&sign=c7ed9d20ab4905caa48864dd044df7c9");
   URLConnection yc = dest.openConnection();
   BufferedReader in = new BufferedReader(
                           new InputStreamReader(
                           yc.getInputStream()));
   String inputLine;

   while ((inputLine = in.readLine()) != null)
   out.println(inputLine);
  
   
  /*  response.setIntHeader("Refresh", 5);
   // Get current time
   Calendar calendar = new GregorianCalendar();
   String am_pm;
   int hour = calendar.get(Calendar.HOUR);
   int minute = calendar.get(Calendar.MINUTE);
   int second = calendar.get(Calendar.SECOND);
   if(calendar.get(Calendar.AM_PM) == 0)
      am_pm = "AM";
   else
      am_pm = "PM";
   String CT = hour+":"+ minute +":"+ second +" "+ am_pm; */
   
   in.close();
%>